<template>
  <div class="launch">
    <transition name="launch-fade" v-on:after-enter="afterEnter" v-on:after-leave="afterLeave">
      <div v-if="sign === 1">
        <div><img src="@/assets/logo.png" /></div>
        <div>Game by Lanmingyan</div>
      </div>
    </transition>
  </div>
</template>

<script>
export default {
  name: 'Launch',
  data() {
    return {
      sign: 0,
    }
  },

  mounted() {
    this.sign = 1
  },

  methods: {
    afterEnter() {
      this.sign = 0
    },
    afterLeave() {
      this.$emit('end')
    },
  }
}
</script>

<style lang="scss">

</style>
